import request from '@/utils/request'

export function login(name, password) {
  return request({
    url: '/student/login',
    method: 'post',
    data: {
      name,
      password
    }
  })
}
export function getMyInfo() {
  return request({
    url: '/student/getMyInfo',
    method: 'post',
    data: {}
  })
}
export function logout(username, password) {
  return request({
    url: '/student/login',
    method: 'post',
    data: { }
  })
}

export function getMyPaper(data) {
  return request({
    url: '/student/getMyPaper',
    method: 'post',
    data
  })
}
export function answerResult(data) {
  return request({
    url: '/student/getMyAnswerResult',
    method: 'post',
    data
  })
}
export function getMyAnswerResultSimple(data) {
  return request({
    url: '/student/getMyAnswerResultSimple',
    method: 'post',
    data
  })
}
export function finishAnswer(data) {
  return request({
    url: '/student/finishAnswer',
    method: 'post',
    data
  })
}
export function answerQuestion(data) {
  return request({
    url: '/student/answerQuestion',
    method: 'post',
    data
  })
}

export function getPaperDetail(data) {
  return request({
    url: '/student/getPaperDetail',
    method: 'post',
    data
  })
}

export function qiandao(username, password) {
  return request({
    url: '/student/login',
    method: 'post',
    data: { }
  })
}
export function getMyClassRoomInfo(username, password) {
  return request({
    url: '/student/getMyClassRoomInfo',
    method: 'post',
    data: { }

  })
}

export function changepass(data) {
 return request({
    url: '/student/changepass',
    method: 'post',
    data,

  })
}
